import time

from django.test import TestCase
from dataQuery.views import *

# Create your tests here.

# for i in range(3):
#     contraband_add('', time.time(), '黄花机场',
#                    'RTX3080', './', './')

result = contraband_select('', params='{"name": "", "place": "", '
                                      '"startTime": "", "endTime": ""}')

# count = contraband_count('', params='{"name": "", "place": "白云机场", '
#                                     '"startTime": "", "endTime": ""}')

# result = contraband_statistic('', params='{"name": "", "place": "", '
#                                          '"startTime": "", "endTime": ""}')

result = contraband_select_paginate('',
                                    condition='{"name": "", "place": "", '
                                              '"startTime": "", "endTime": ""}',
                                    page_info='{"page": 2, "per_page": 2}')
